package com.gewei.service;

import com.gewei.entity.PageResult;
import com.gewei.entity.QueryPageBean;
import com.gewei.pojo.Member;

import java.util.List;

/**
 * @author gewei
 */
public interface MemberService {

    /**
     * 根据手机号查询会员
     *
     * @param telephone
     * @return
     */
    Member findByTelephone(String telephone);

    /**
     * 保存会员信息
     *
     * @param member
     */
    void add(Member member);

    /**
     * 根据月份查询会员数量
     *
     * @param months
     * @return
     */
    List<Integer> findMemberCountByMonths(List<String> months);

    PageResult pageQuery(QueryPageBean queryPageBean);

    void deleteById(Integer id);

    void edit(Member member);

    Member findById(Integer id);

    List<Member> findAll();
}
